# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-psycopg2
pkgver=2.9.3
pkgrel=0
pkgdesc="PostgreSQL adapter for python"
options="!check" # Requires running database
url="http://initd.org/psycopg"
arch="all"
license="LGPL-2.0-or-later"
makedepends="libpq-dev python3-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/psycopg2/psycopg2-$pkgver.tar.gz"
builddir="$srcdir/psycopg2-$pkgver"

build() {
	python3 setup.py build
}

check() {
	make check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
048184d1d162a371fc0fba711448a6fa8a6aac193421f4484c7f7b91c39065d5b632fa34fc15a901eca055d597302b1f9e38330b248ed0e4653dcdc544b0d660  psycopg2-2.9.3.tar.gz
"
